import { Result } from './common';

/**
 * @description: path和id必须二选一
 */
export interface CreateFolderData {
  name: string;
  parentPath?: string;
  parentId?: string;
}

/**
 * @description: path和id必须二选一
 */
export interface RenameFolderData {
  name: string;
  path?: string;
  folderId?: string;
}

/**
 * @description: path和id必须二选一
 */
export interface FileItemsFilterData {
  parentId?: string;
  parentPath?: string;
  fileItemName?: string;
  sourceId?: string;
  withItemSource?: string;
  pageNo?: number;
  pageSize?: number;
  startTime?: string; // YYYY-MM-DD HH:mm:ss
  endTime?: string;
  suffix?: string;
  useFuzzySearch?: boolean;
  excludeFolder?: boolean;
}

export interface FileItemPathModel extends Result {
  data: string;
}
